package com.runfast.waimai.dao.mapper;

import com.runfast.common.dao.IMapper;
import com.runfast.waimai.dao.model.RunfastWithdraw;
import com.runfast.waimai.dao.model.RunfastWithdrawExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface RunfastWithdrawMapper extends IMapper<RunfastWithdraw, Integer, RunfastWithdrawExample> {
    List<RunfastWithdraw> findMoneyhome(@Param("agentId")List agentId,@Param("name") String name, @Param("state")Integer state, @Param("status")Integer status, @Param("usermobile")String usermobile, @Param("createtime1")Date createtime1, @Param("createtime2")Date createtime2, @Param("page")Integer page, @Param("pagesize")Integer pagesize);
    Integer findMoneyhomecount(@Param("agentId")List agentId,@Param("name") String name, @Param("state")Integer state, @Param("status")Integer status, @Param("usermobile")String usermobile, @Param("createtime1")Date createtime1, @Param("createtime2")Date createtime2,@Param("page")Integer page,@Param("pagesize")Integer pagesize);
    List<RunfastWithdraw> findBusinessMoneyhome(@Param("name")String name,@Param("agentId")List agentId, @Param("createtime1")Date createtime1, @Param("createtime2")Date createtime2,@Param("page")Integer page,@Param("pagesize")Integer pagesize);
    Integer  findBusinessMoneyhomecount(@Param("name")String name,@Param("agentId")List agentId, @Param("createtime1")Date createtime1, @Param("createtime2")Date createtime2,@Param("page")Integer page,@Param("pagesize")Integer pagesize);

    RunfastWithdraw findMobileAndTime(@Param("usermobile") String usermobile,@Param("createtime") Date createtime);

    RunfastWithdraw findByid(Integer id);
}